package com.itheima.mall.service.umsService;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.itheima.mall.commons.PageBean;
import com.itheima.mall.mapper.umsMapper.UmsRoleMapper;
import com.itheima.pojo.ums.UmsRole;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.ArrayList;

public class UmsRoleServiceImpl implements UmsRoleApi{


    @Autowired
    private UmsRoleMapper umsRoleMapper;


    @Override
    public UmsRole selectByRoleId(Long roleId) {

        LambdaQueryWrapper<UmsRole> wrapper =new LambdaQueryWrapper<>();
        wrapper.eq(UmsRole::getId,roleId);
        UmsRole umsRole = umsRoleMapper.selectById(wrapper);
        return umsRole;
    }

    @Override
    public void updateStatus(long id, Integer status) {

    }

    @Override
    public ArrayList<UmsRole> getrole(ArrayList<Long> roleIds) {
        return null;
    }

    @Override
    public void create(UmsRole role) {

    }

    @Override
    public void delete(ArrayList<Long> ids) {

    }

    @Override
    public PageBean<UmsRole> list(Integer pageNum, Integer pageSize, String keyword) {
        return null;
    }

    @Override
    public ArrayList<UmsRole> listAll() {
        return null;
    }

    @Override
    public void updateById(Long id, UmsRole role) {

    }
}
